package com.shop.admin.controller;

import com.shop.Result.LdbzResult;
import com.shop.admin.service.AdminLoginService;
import com.shop.admin.service.AdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/admin/login/service")
public class AdminLoginController {

    @Autowired
    private AdminLoginService adminLoginService;

    @RequestMapping("/login")
    public LdbzResult userLogin(String account, String password , String code , String uid , HttpServletRequest req , HttpServletResponse response) {
        return adminLoginService.userLogin(account,password,code,uid);
    }
}
